from django.urls import path,re_path
from . import views

app_name = "verifications"

urlpatterns = [
  # re_path(r'^image_codes/(?P<image_code_id>[\w-]+)/$',views.ImageCode.as_view(),name='image_code'),
    path('image_codes/<uuid:image_code_id>/',views.ImageCode.as_view(),name='image_code'),#生成验证码
    re_path('usernames/(?P<username>\w{5,20})/', views.CheckUsernameView.as_view(), name='check_username'),#校验用户名
    re_path('mobiles/(?P<mobile>1[3-9]\d{9})/', views.CheckMobileView.as_view(), name='check_mobile'),  # 校验手机号
    path('sms_codes/',views.SmsCodesView.as_view(),name='sms_codes'),#短信验证码
]